//
//  UIViewController+PresentViewContoller.h
//  etionUI
//
//  Created by wjxfhxy on 15/9/13.
//  Copyright (c) 2015年 GuangZhouXuanWu. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (PresentViewContoller)

+ (void)presentRootViewControllerClassOfNavigationViewController:(Class)rootViewControllerClass switchParam:(XUIViewControllerSwitchParam*)switchParam animated:(BOOL)flag completion:(void (^)(void))completion;

+ (void)presentRootViewControllerClassOfNavigationViewController:(Class)rootViewControllerClass animated:(BOOL)flag completion:(void (^)(void))completion;

+ (void)presentViewControllerClass:(Class)ViewControllerClass switchParam:(XUIViewControllerSwitchParam*)switchParam animated:(BOOL)flag completion:(void (^)(void))completion;

+ (void)presentViewControllerClass:(Class)viewControllerClass animated:(BOOL)flag completion:(void (^)(void))completion;

+ (void)presentViewController:(UIViewController*)viewController animated:(BOOL)flag completion:(void (^)(void))completion;

+ (void)dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion;

+ (void)dismissViewControllerAnimated:(BOOL)flag postNotificationKey:(NSString*)key userInfo:(NSDictionary*)userInfo;

+ (void)dismissViewControllerAnimated:(BOOL)flag switchParam:(XUIViewControllerSwitchParam*)switchParam completion:(void (^)(void))completion;

- (void)recvDismissViewControllerSwitchParam:(XUIViewControllerSwitchParam*)switchParam;

@end
